﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PJB.FacetedNavigation
{
    public class RepositoryHelper
    {
        // this is a cache set of non-filtered results
        public static ListingResults MasterResults
        {
            get
            {
                using (var factory = RepositoryConnection.GetFactory())
                {
                    var service = factory.CreateChannel();
                    var query = new ListingQuery();
                    query.NonParsedFieldList.Add(new Celeriq.Common.NamedItem() {Key = "masterresults", Value = "true"});
                    return RepositoryConnection.QueryData(query, service);
                }

            }
        }
    }
}